﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Detai.Web.ViewModels.SystemViewModels>" %>
<%@ Import Namespace="Detai.Lib.Helpers" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Phục hồi dữ liệu
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <% using (Html.BeginForm()) {%>
        <%= Html.ValidationSummary(true) %>

        <fieldset>
            <legend>Thông tin cơ sở dữ liệu</legend>
            <table width="100%" class="admintable">
            <tr>
                <td style="width:150px" class="key">Server:</td>
                <td>
                    <%=Html.TextBoxFor(model => model.Server, new { @class="required"})%>
                </td>
            </tr>
            <tr>
                <td class="key">Database:</td>
                <td><%=Html.TextBoxFor(model => model.Database, new { @class="required"})%></td>
            </tr>
            <tr>
                 <td class="key">User id:</td>
                <td><%=Html.TextBoxFor(model => model.UserId, new { @class="required"})%></td>
            </tr>
            <tr>
                 <td class="key">Password:</td>
                <td><%=Html.TextBoxFor(model => model.Password, new { @class="required"})%></td>
            </tr>
            <tr>
                 <td class="key">Chọn file backup</td>
                <td><%=Html.DropDownList("ddlFiles",Model.BackupFiles,"-- Chọn file backup --", new { @class="required"})%></td>
            </tr>
            <tr>
                <td colspan="2">
                    <input type="submit" value="Phục hồi dữ liệu" /></td>
            </tr>
        </table>           
        </fieldset>

 <% } %>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="Toolbar" runat="server">
<%= Html.Toolbar("Sao lưu dữ liệu", "/System/Backup", "lock")%>
<%= Html.Toolbar("Quay lại", "/Home/Index", "back")%>
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="Header" runat="server">
Phục hồi dữ liệu
</asp:Content>

<asp:Content ID="Content5" ContentPlaceHolderID="Message" runat="server">
 <%=ViewData["MessageInfo"]!=null? "<p class='perror'>"+Html.Encode(ViewData["MessageInfo"])+"</p>":string.Empty%>  
</asp:Content>

